<%-- 
    Document   : cabecera
    Created on : 07/08/2008, 04:43:18 PM
    Author     : LIZARDO RIOS
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.me.codigo.Baldor" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="../css/admin_1.css" rel="stylesheet" type="text/css" />
        
        <%
            String nTipo = (String) session.getAttribute("s_tipo_usuario_web");
            String nPersona = (String) session.getAttribute("s_persona");
            String nMsg = "Usuario no identificado...!";
            boolean ocultarSesion = (session.getAttribute("s_ocultar_sesion") == null) ? false : (Boolean)session.getAttribute("s_ocultar_sesion");
            //boolean ocultarSesion = Baldor.aBooleano(sOcultarSesion);
            boolean estilo = (request.getAttribute("r_estilo") == null) ? true : false;
            String paginaInicio = "";
            if(estilo){
                paginaInicio = "../../";
            }else{
                paginaInicio = "../estatica/index.jsp";
            }
            
            //String paginaInicio = (estilo) ? "../" : "Control?pagina=inicio";
        %>
    </head>
    <body>
        <center>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tablaprincipal">
                <tr>
                    <td width="100%" height="134" valign="top"><img src="../img/cabeceraIntranet.jpg" width="100%" height="135"/></td>
                </tr>
                <tr>
                    <td height="33" valign="top">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr bgcolor="#FFFFFF">
                                <td width="32" height="32" align="left" valign="middle">
                                    &nbsp;<img src="../img/member.jpg" width="24" height="24" />
                                </td>
                                <% if (nTipo != null && nPersona != null) { %>
                                    <td width="1000" align="left" valign="middle" class="txtBase">
                                        <span class="txtBase">
                                            <strong><%= nTipo%> :&nbsp;</strong><%= nPersona%>&nbsp;|&nbsp;<a href='../../ServletSesion?accion=cerrarSesion' target="_parent" class="link1_2">INICIO</a>
                                        </span>
                                    </td>
                                <% } else {%>
                                    <td width="1000" align="left" valign="middle" class="txtBase">
                                        <span class="txtBase">
                                            <strong><%= nMsg%></strong>
                                        </span>
                                    </td>
                                <% } %>
                                
                                <% if(ocultarSesion) { %>
                                <td width="5%" align="right" valign="middle"><img src="../img/logout.gif" width="32" height="26" />
                                    &nbsp;
                                </td>
                                <td width="9%" align="right" valign="middle">
                                    <a href="../../ServletSesion?accion=cerrarSesion" class="link1" target="_top">Cerrar Sesi&oacute;n</a>
                                    &nbsp;&nbsp;
                                </td>
                                <% } else { %>
                                <td width="5%" align="right" valign="middle">&nbsp;</td>
                                <td width="9%" align="right" valign="middle">
                                    <font face="arial" size="2">
                                        <a href="<%= paginaInicio%>"styleClass="link1" target="_top"><b>Ir al inicio</b></a>
                                        &nbsp;&nbsp;
                                    </font>
                                </td>
                                <% } %>
                                <td width="5">&nbsp;</td>
                            </tr>
                            <tr>
                                <td height="0"></td>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </center>
    </body>
</html>
